package com.example.ojsystem.domain.sysuser;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.ojcommencore.core.domain.BaseEntity;
import lombok.Data;


@TableName("tb_sys_user")
@Data
public class SysUser extends BaseEntity {
    // @TableId(type = IdType.ASSIGN_UUID) : UUID
    // 雪花算法自动生成
    @TableId(type = IdType.ASSIGN_ID)
    private Long userId;  //主键  不再使用auto_increment

    private String userAccount;

    private String password;

    private String nickName;
}
